home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
docs
/
winer
/
emsint.asm
< prev
next >
Wrap
Assembly Source File
|
1992-05-13
|
707b
|
37 lines
;EMSINT.ASM - dedicated EMS interrupt calling routine
;Copyright (c) 1991 Ethan Winer
.Model Medium, Basic
EMSRegs Struc
RegAX DW ?
RegBX DW ?
RegCX DW ?
RegDX DW ?
EMSRegs Ends
.Code
EMSInt Proc Uses SI, ERegs:Word
Mov SI,ERegs ;get the address of EMSRegs
Mov AX,[SI+RegAX] ;load each register in turn
Mov BX,[SI+RegBX]
Mov CX,[SI+RegCX]
Mov DX,[SI+RegDX]
Int 67h ;call the EMS driver
Mov SI,ERegs ;access EMSRegs again
Mov [SI+RegAX],AX ;save each register in turn
Mov [SI+RegBX],BX
Mov [SI+RegCX],CX
Mov [SI+RegDX],DX
Ret ;return to BASIC
EMSInt Endp
End